From e49fc30455dfe31b9b6678501b960957753939a6 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 16 May 2019 13:41:39 +0200 Subject: [PATCH] AMD/IOMMU: don't open-code for_each_amd_iommu() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné Acked-by: Andrew Cooper --- xen/drivers/passthrough/amd/iommu_intr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/amd/iommu_intr.c b/xen/drivers/passthrough/amd/iommu_intr.c index dad2d1e5ab..da3c3c1a44 100644 --- a/xen/drivers/passthrough/amd/iommu_intr.c +++ b/xen/drivers/passthrough/amd/iommu_intr.c @@ -503,7 +503,7 @@ static struct amd_iommu *_find_iommu_for_device(int seg, int bdf) { struct amd_iommu *iommu; - list_for_each_entry ( iommu, &amd_iommu_head, list ) + for_each_amd_iommu ( iommu ) if ( iommu->seg == seg && iommu->bdf == bdf ) return NULL; -- 2.30.2